package com.carsystems.mapper;

import com.carsystems.pojo.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface NoticeMapper {
    //查询全部
    List<Notice> NoticeList();

    //按tz_id查询
    Notice selectByPrimaryKey(int tz_id);

    //添加一条通知
    int addNotice(Notice notice);

    //删除一条通知
    int daleteNotice(int tz_id);

    //修改一条通知
    int updateNotice(Notice notice);
}
